package com.exp.base.format;

import java.text.ParseException;
import java.util.Date;
import java.util.Locale;

import org.apache.commons.lang3.StringUtils;
import org.springframework.format.Formatter;

/**
 * 更换了策略
 * @author jjliu
 *
 */
public class StringTrimmingFormatter  implements Formatter<String>{


	public String parse(String text, Locale locale) throws ParseException {
		return StringUtils.trim(text);
	}

	public String print(String object, Locale locale) {
		return object;
	}

}
